package com.firebird.app.fekpsl.adapter.sword.rank

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class ViewPagerAdapter(fm: FragmentManager?,
                       private val list: List<Fragment>
): FragmentPagerAdapter(fm!!) {
    override fun getItem(i: Int) : Fragment {
        return list[i]
    }
    override fun getCount() :Int{
        return list.size
    }
}